#本例演示如何向工程中添加文件
cmake_minimum_required(VERSION 2.8)
project(lib-test-c)

#向文件列表中添加文件目录，添加目录中的文件到目录列表中
AUX_SOURCE_DIRECTORY(. src_list)

set(lib_path ${CMAKE_SOURCE_DIR}/../lib-c)
#添加头文件搜索路径
include_directories(${lib_path})

add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME}
    ${lib_path}/libjuly-c.dll)

#configure_file(${lib_path}/libjuly-c.dll
#    ${LIBRARY_OUTPUT_PATH} COPYONLY)

#拷贝文件
#file(COPY ${lib_path}/libjuly-c.dll DESTINATION ${EXECUTABLE_OUTPUT_PATH})
